package com.hnichr.ump.autoconfigure.ping;

import com.hnichr.ump.common.Constant;
import com.hnichr.ump.common.vo.ModuleVO;
import com.hnichr.ump.ping.PingConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(PingConfiguration.class)
@Import(PingConfiguration.class)
@Slf4j
public class PingAutoConfiguration {

	public PingAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Ping Module Loading");
		Constant.addModule(new ModuleVO("Ping","消息发送模块"));
	}
}
